﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PSU.Models;

namespace PSU.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        RepositorioPreguntaPartida repo = new RepositorioPreguntaPartida();

        public ActionResult Index()
        {
            
            ViewData["Message"] = "Hola";


            return View();
        }

        public ActionResult Detalles()
        {
            var p = repo.FindAll().ToList();
            return View("Detalles",p);
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Borito()
        {
            return View(repo.Get(1,1));
        }

    }
}
